package org.xg.study.pd.test;

import com.alibaba.fastjson.JSON;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.xg.study.pd.Activity;
import org.xg.study.pd.ActivityController;

/**
 * @author CMG
 * @version 1.0
 * @description
 * @cLassName ApiTest11_02
 * @date 2021/9/15 16:25
 **/
public class ApiTest11_02 {
    private Logger logger = LoggerFactory.getLogger(ApiTest11_02.class);

    private ActivityController activityController = new ActivityController();

    @Test
    public void test_queryActivityInfo() throws InterruptedException {
        for (int idx = 0; idx < 10; idx++) {
            Long req = 10001L;
            Activity activity = activityController.queryActivityInfo(req);
            logger.info("测试结果：{} {}", req, JSON.toJSONString(activity));
            Thread.sleep(1200);
        }
    }
}
